<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
<title>商城系统登录</title>
    <script src="/drclothes/Public/js/jquery.min.js"></script>    
    <script src="/drclothes/Public/js/bootstrap.min.js"></script>  
    <link href="/drclothes/Public/css/bootstrap.min.css" rel="stylesheet">
    <link href="/drclothes/Public/css/admin.css" rel="stylesheet">
    <link href="/drclothes/Public/css/style.css" rel="stylesheet">
</head>
<body class="body1">
<div class="login-box">
  <div class="login-logo" align="center" style="width:100%;">
    
  </div>
  <!-- /.login-logo -->
  <div class="login-box-body" align="center">
    <form id="loginForm" method="post" action="/drclothes/index.php/Admin/Form/login_process" autocomplete="off">
      <img src="/drclothes/Public/image/logo.png" class="img-responsive"  style="padding-top:20px;padding-bottom:20px;" />
      <h2 style="padding-top:50px;" align="center">Drclothes网站管理系统</h2>
      <div class="form-group">
        <input type="text" id="username" class="form-control input-lg" name="usernameA"  placeholder="请输入用户名" required>
      </div>
      <div class="form-group">
        <input type="password" id="password" class="form-control input-lg" name="passwordA" placeholder="请输入密码" required>
      </div>
      <div class="form-group">
        <div class="col-xs-6 no-padding form-group">
							<input name="verify" type="text" placeholder="请输入验证码" class="form-control input-lg" required>
				  </div>
					<div class="col-xs-6 no-padding text-right" id="captcha-container">
									<img height="50px" alt="验证码" src="<?php echo U('Admin/Form/verify_c',array());?>" title="点击刷新">
				  </div>
      </div>
      <div class="row">
        <div class="col-xs-12">
          <button type="submit" name="submit" class="btn btn-primary btn-block btn-flat btn-lg button2">登录</button>
        </div>
        <!-- /.col -->
      </div>
    </form>

  </div>
  <!-- /.login-box-body -->
</div>
<!-- /.login-box -->

<script>
	var captcha_img = $('#captcha-container').find('img')  
	var verifyimg = captcha_img.attr("src");  
	captcha_img.attr('title', '点击刷新');  
	captcha_img.click(function(){  
			if( verifyimg.indexOf('?')>0){  
					$(this).attr("src", verifyimg+'&random='+Math.random());  
			}else{  
					$(this).attr("src", verifyimg.replace(/\?.*$/,'')+'?'+Math.random());  
			}  
	}); 
</script>

</body>
</html>